package fr.vincent7894.feedroid.fragment;

import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import fr.vincent7894.feedroid.feed.pojo.FeedAlias;
import fr.vincent7894.feedroid.listener.FeedAliasClickListener;

public class FeedAliasesFragment extends ListFragment implements FeedAliasClickListener.Aware {
	
	private FeedAliasClickListener feedAliasClickListener;
	
	private ArrayAdapter<FeedAlias> adapter;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		return null;
	}
	
	@Override
	public void onListItemClick(ListView l, View v, int position, long id) {
		FeedAlias alias = this.adapter.getItem(position);
		this.feedAliasClickListener.onFeedAliasClick(alias);
	}
	
	@Override
	public void setFeedAliasClickListener(
			FeedAliasClickListener feedAliasClickListener) {
		this.feedAliasClickListener = feedAliasClickListener;
	}
}
